package com.duck.inspection.config;

import com.alibaba.dashscope.utils.Constants;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

@Configuration
public class QianwenConfig {
    @Value("${qianwen.api-key}")
    private String apiKey;

    @PostConstruct
    public void init() {
        Constants.apiKey = apiKey; // 初始化SDK密钥
    }
}